I
Type of instance to register (may be an implemented interface instead of the full type).
LEADTOOLS Medical (Leadtools.Dicom.AddIn assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Register<I>(I,String) Method
See Also 
Leadtools.Dicom.AddIn Namespace > ServiceLocator Class > Register Method : Register<I>(I,String) Method



instance
Object to be returned.
name
The name of the instance.
instance
Object to be returned.
name
The name of the instance.
Registers an instance with the container.

Syntax

Visual Basic (Declaration) 
Overloads Public Shared Sub Register(Of I)( _
   ByVal instance As I, _
   ByVal name As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As I
Dim name As String
 
ServiceLocator.Register(Of I)(instance, name)
C# 
public static void Register<I>( 
   I instance,
   string name
)
C++/CLI 
public:
static void Registergeneric<typename I>
( 
   I^ instance,
   String^ name
) 

Parameters

instance
Object to be returned.
name
The name of the instance.

Type Parameters

I
Type of instance to register (may be an implemented interface instead of the full type).

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Dicom.AddIn requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features